package com.lry.basic.design_mode.strategy.price;

public class Discount {
    private Promotion promotion;

    public Discount(Promotion promotion){
        this.promotion = promotion;
    }

    public double discount(double price){
        return promotion.discount(price);
    }
}
